	.org 0x0
	.set noat
	.set noreorder
	.set nomacro
	.global _start
_start:
	ori $1,$0,0x100     # $1 = 0x100
	jr $1
	nop

	.org 0x20
	
	xori $2,$2,0xffff
	sb $2, 259($0)
   
	#初始化compare寄存器为 0x2FAF080(50000000)
	lui $1,0x2FA
	ori $1,$1,0xF080
	mtc0 $1,$11,0x0
	
	#设置count寄存器为0
	ori $1,$0,0
	mtc0 $1,$9,0x0
	
	eret
	nop

	.org 0x100
	#初始化compare寄存器为 0x2FAF080(50000000)
	lui $1,0x2FA
	ori $1,$1,0xF080
	mtc0 $1,$11,0x0
	
	#设置status寄存器为ox10000401,使能时钟中断
	lui $1,0x1000
	ori $1,$1,0x401
	mtc0 $1,$12,0x0
   
	#设置count寄存器为0
	ori $1,$0,0
	mtc0 $1,$9,0x0
	
	ori $2,$0,0xff
	sb $2, 259($0)

_loop:
   j _loop
   nop
   
   
